extends layout

block title
    title 发帖

block extraStyles

block bodyContent

    .view.view-topic
        h2 帖子详情

        if r
            a(href="/topic/#{r._id}/edit") 修改
            .topic(data-id=r._id)
                .title=r.title
                .content= r.content
        else
            h2 数据错误
            a(href="/") 返回首页


block extraScripts